<?php if ($this->_var['integral_enabled'] && $this->_var['goods_info']['total_integral_max_exchange'] > 0 && $this->_var['member_info']['integral'] > 0): ?>
<div class="w price-promotion mt10 mb10 f60">
    <p class="mb10 mt10">
        <input type="button" class="btn-allow-coupon center use_integral_button" value="使用积分" />
    </p>
    <p class="allow-coupon border padding10 mb10 hidden clearfix">
        <span class="note">
            当前用户可用积分<em style="font-weight:bold;color:red;padding: 0 5px;"><?php echo $this->_var['member_info']['integral']; ?></em>,
            本次订单最多可使用积分<em style="font-weight:bold;color:red;padding: 0 5px;"><?php echo $this->_var['goods_info']['total_integral_max_exchange']; ?></em>
            积分比例为<em style="font-weight:bold;color:red;padding: 0 5px;"><?php echo ($this->_var['integral_seller'] == '') ? '0' : $this->_var['integral_seller']; ?></em>
        </span>
        <input type="text" name="use_integral[<?php echo $this->_var['key']; ?>]" id="use_integral_<?php echo $this->_var['key']; ?>" onkeyup="set_order_amount_total(<?php echo $this->_var['key']; ?>);" class="text use_integral" />
    </p>
</div>
<?php endif; ?>

<?php if ($this->_var['goods_info']['allow_coupon']): ?>

<div class="w price-promotion mt10 mb10 f60">
    <p class="mb10 mt10">
        <input type="button" class="btn-allow-coupon center use_coupon" data-store_id="<?php echo $this->_var['key']; ?>" value="使用优惠券" />
    </p>
    <p class="allow-coupon border padding10 mb10 hidden clearfix">
        <select id="coupon_sn_<?php echo $this->_var['key']; ?>" name="coupon_sn[<?php echo $this->_var['key']; ?>]" onchange="set_order_amount_total(<?php echo $this->_var['key']; ?>);"  >
            <option value="">选择您可用的优惠券</option>
            <?php $_from = $this->_var['goods_info']['coupon_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'coupon');if (count($_from)):
    foreach ($_from AS $this->_var['coupon']):
?>
            <option value="<?php echo $this->_var['coupon']['coupon_sn']; ?>">SN:<?php echo $this->_var['coupon']['coupon_sn']; ?>(<?php echo price_format($this->_var['coupon']['coupon_value']); ?>)</option>
            <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
        </select>
        <span class="note">本商城优惠券每次只能使用一张。您可以到 <a href='index.php?app=my_coupon'>我的优惠券</a> 登记或者查询具体的优惠券信息：</span>
    </p>
</div>
<?php endif; ?>



<div class="make_sure w mb10">
    <p>
        <span class="ml20">订单总价：</span>
        <strong  id="order_amount_<?php echo $this->_var['key']; ?>" class="order_amount"><?php echo price_format($this->_var['goods_info']['amount']); ?></strong>
    </p>
</div>